package com.livgo.dao.po;

import com.baomidou.mybatisplus.annotation.Version;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FileInfo {

    @NotBlank
    private Integer id;

    @NotBlank
    private String code;

    @NotBlank
    private String oriName;

    @NotBlank
    private String fileName;

    @NotBlank
    private String uri;

    @NotBlank
    private Integer type;

    private Integer maxCount;

    private Integer currentCount;

    private LocalDateTime expireTime;

    private String fileSize;

    private String extension;

    private LocalDateTime uploadTime;

    private Integer status;

    @Version
    private Integer version;

}
